const router = require('koa-router')(),
      adminController = require('../controllers/AdminController');

router.prefix('/admin'); //加默认路由

router.get('/create-admin', adminController.createAdmin)

router.post('/login_action', adminController.loginAction);
router.get('/login_check', adminController.loginCheck);
router.get('/logout_action', adminController.logoutAction);

module.exports = router;